= simple_form_for(@project, url: do_exec_project_url(@project), html: {remote: true, class: 'project-do-action-form'}) do |f|
  = hidden_field_tag :command, params[:command]
  - if params[:command] == 'checkout' && params[:branch].present?
    .block.text-success= "切换至分支：#{params[:branch]} 并执行……"
    = hidden_field_tag  'commands[]', 'checkout'
    = hidden_field_tag  'branch', params[:branch]
  - @commands.each_with_index do |c, i|
    span.commands-list
      = check_box_tag 'commands[]', c, true, id: "command-#{i}"
      label for="command-#{i}" = c

  = f.button :submit, value: '立即执行', class: 'btn btn-primary'
hr
.modal-operation-log data-id="#{@project.id}"
  .logs